﻿@using TjZheng.Domain.DataEntity;
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_TreeListLayout.cshtml";
    DbSetInfo objDbSetInfo = ViewBag.DbSetInfo as DbSetInfo;
}
@inherits CMSWebViewPage<object>

<div class="easyui-layout" data-options="fit:true,border:false">
    <div data-options="region:'west',width:120">
        <ul id="tree_CategoryInfo" data-options="url:'/BBS/CategoryInfo/TreeJson/1?SetId=@objDbSetInfo.SetId',onClick:CreatePage,animate:true,lines:true"></ul>
    </div>
    <div id="div_CategoryInfo" class="yhidden" data-options="region:'center',border:false">
    </div>
</div>
@section Bottom{
    <script type="text/javascript">
        var objBizTree = new BizTree("#tree_CategoryInfo");
        function CreatePage(node) {
            $div = $("#div_CategoryInfo");
            $div.children().remove();
            $div.append(CreateiFrame("/BBS/ArticleInfo?TransferID=" + node.id + "&TransferTwoID=" + node.text + "&SetId=@objDbSetInfo.SetId"));
        }
        function RefreshTree() {
            objBizTree.reload();
        }
    </script>
}
